<%@ page language="java" contentType="text/html;charset=utf-8" pageEncoding="utf-8"%>

<%@ include file="/core/taglibs.jsp"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/core/adminTopMeta.jsp"%>



</head>

<body oncontextmenu="return false">
	<div class="loader"></div>
	<div class="row">
		<div class="col-md-12">
			<div class="panel">
				<div class="panel-heading text-primary">
					<h3 class="panel-title">
						<i class="fa fa-list-ol"></i> 服务中心列表 <span class="pull-right">
							<div class="btn-group code">
								<a href="#" class="dropdown-toggle" data-toggle="dropdown" title="Classes used"> </a>

							</div> </span>
					</h3>
				</div>

				<!-- /panel body -->
			</div>
		</div>

		<div class="col-md-12">
			<div class="panel panel-primary">
				<div class="panel-heading">
					<h3 class="panel-title  text-white" style="font-size: 17px;">服务中心列表</h3>
				</div>
				<div class="panel-body">
					<form id="commitForm" name="commitForm" method="post" action="<%=basePath%>/admin/center/centerList.shtml">
						
						<div class="table-responsive">

							<table class="table table-bordered table-hover table-striped display tab_center" id="example">
								<thead>

									<tr class="info">
										<th>服务中心编号</th>
										<th>姓名</th>
										<th>服务中心等级</th>

										<th>手机号码</th>
										<th>推荐人</th>
										<th>服务中心名称</th>
										<th>服务中心地址</th>
										<th>修改</th>
										<th>取消</th>
									</tr>

								</thead>
								<tbody>
									<c:forEach items="${pagination.pageList}" var="o">

										<tr class="odd gradeX">
											<td>${o.loginName}</td>

											<td>${o.personName}</td>
											<td><c:if test="${o.centerLevel==0}">代理商</c:if> <c:if test="${o.state==1}">服务中心</c:if> <c:if test="${o.state==2}">服务经理</c:if><c:if test="${o.state==3}">区域经理</c:if></td>
											<td>${o.tel}</td>
											<td>${o.recommendLoginName}</td>
											<td>${o.centerTitle}</td>
											<td>${o.centerAdds}</td>
											<td><a href="admin/center/centerShow.shtml?id=${o.id}"> 修改 </a></td>
											<td><a href="admin/center/centerRemove.shtml?id=${o.id}"> 取消 </a></td>
										</tr>

									</c:forEach>
									<tr>
										<td style="border: 0px;background: white;text-align: left;" colspan="6"><page:pageControl />
										</td>
									</tr>
								</tbody>


							</table>
						</div>
					</form>
				</div>
			</div>
			<!-- / Info Panel -->

		</div>

		<!-- /col-md-12 -->
	</div>
	<!--代码高亮end-->

	<link rel="stylesheet" href="<%=basePath%>/resources/adminCss/datepicker/datepicker3.css" />
	<script src="<%=basePath%>/resources/adminCss/datepicker/bootstrap-datepicker.js"></script>
	<script src="<%=basePath%>/resources/adminCss/datepicker/locales/bootstrap-datepicker.zh-CN.js"></script>
	<!--中文补丁-->
	<!-- 单时间控件-->
	<!--http://www.bootcss.com/p/bootstrap-datetimepicker/-->

	<link rel="stylesheet" href="<%=basePath%>/resources/adminCss/daterangepicker/daterangepicker-bs3.css" />
	<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.11.2/moment.min.js"></script>
	<script src="<%=basePath%>/resources/adminCss/daterangepicker/daterangepicker.js"></script>
	<!--双日期控件-->
	<!--http://blog.csdn.net/u012854400/article/details/45293037-->


	<script>
		$('.datemask1').datepicker({
			language : "zh-CN",
			format : 'yyyy-mm-dd',
			autoclose : true
		});

		$('.datemask2').daterangepicker(
				{
					locale : {
						applyLabel : '确定',
						cancelLabel : '取消',
						fromLabel : '起始时间',
						toLabel : '结束时间',
						format : 'yyyy-mm-dd',
						customRangeLabel : '自定义',
						daysOfWeek : [ '日', '一', '二', '三', '四', '五', '六' ],
						monthNames : [ '一月', '二月', '三月', '四月', '五月', '六月',
								'七月', '八月', '九月', '十月', '十一月', '十二月' ],
						firstDay : 1
					}
				});
	</script>

</body>
</html>